import requests
# 上传图片的接口需要两个参数
# file
files = {'file':('D:\p6\p6_education\test_script\test\text_file.py',open,'rb')}
request.post('http://localhost:5000/user/upload',data={'userid':1},file = files)
 